<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="bean.*" %>
<%@ page import="dao.*" %>
<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8" />
		<title>学生界面</title>
		<link type="text/css" rel="stylesheet" href="css/index.css">
		<link type="text/css" rel="stylesheet" href="css/bootstrap.min.css">
	</head>
	<body>
		<%
			Customer c = (Customer) request.getSession().getAttribute("admin");
			//Teacher t = (Teacher)request.getSession().getAttribute("teacher");
			if(c == null){
				response.sendRedirect("Not_Login.jsp");
			}
		%>
		<div class="main">
			<div class="navigation">
				<span>欢迎回来! 
					<%
						if(c != null){
							out.print(c.getName());
						}
					%>
					管理员
				</span>
				<a class="exit" href="index.jsp"><span>退出登录</span></a>
			</div>
			<table class="table" style="margin:0 auto;width:90%">
				<tr>
					<td style="width:20%"><button class= "btn btn-info" style="width:100%" onclick="window.location.href='index_Admin.jsp'">公告</button>	</td>
					<td style="width:20%"><button class= "btn btn-info" style="width:100%" onclick="window.location.href='Manage_Students.jsp?pages=1'">学生管理</button></td>
					<td style="width:20%"><button class= "btn btn-info" style="width:100%" onclick="window.location.href='Manage_Teachers.jsp'">教师管理</button></td>
				</tr>
			</table>
			<div>
				<table class="table table-hover; table_center" style="margin:0 auto;width:90%;color: white" >
				<tr>
						<form class="form-inline" method="post" action="InsertServlet">
							<td>
								<div class="form-group">
									<label >姓名</label>
									<input type="text" name="Name" style="color: black"/>
								</div>
							</td>
							<td>
								<div class="form-group">
									<label >编号</label>
									<input type="text" name="ID" style="color: black"/>
								</div>
							</td>
							<td>
								<div>
									<label>学院: </label>
									<select name="Depart" style="color: black">
										<option value="信息科学与技术学院" >信息科学与技术学院</option>
										<option value="艺术学院">艺术学院</option>
										<option value="新闻与传媒学院">新闻与传媒学院</option>
										<option value="机械学院">机械学院</option>
										<option value="马克思学院">马克思学院</option>
									</select>
								</div>
							</td>
							<td>
								<div>
									<label>性别: </label>
									<select name="Sex" style="color: black">
										<option value="男">男</option>
										<option value="女">女</option>
									</select>
								</div>
							</td>
							<td>
								<div>
									<label>类型: </label>
									<select name="Type" style="color: black">
										<option value="teacher">教师</option>
										<option value="student">学生</option>
									</select>
								</div>
							</td>
							<td>
								<button type="submit" class="btn btn-default btn-sm" >提交</button>
							</td>
						</form>
					</tr>

				</table>
			</div>
			<div class="clear"></div>
		</div>

	</body>
</html>
